package com.datang.petstore.controller;

import com.datang.petstore.entity.InformCause;
import com.datang.petstore.resultpage.Result;
import com.datang.petstore.service.InformCauseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-11-01 16:45
 * @notify 举报原因
 * @version 1.0
 */
@RestController
public class InformCauseController {
    @Autowired
    private InformCauseService informCauseService;

    @GetMapping(value="informcause")
    public Result getAllInformCause() {
        List<InformCause> allInformCause = informCauseService.getAllInformCause();
        return Result.ok(allInformCause);
    }
}
